package com.changli03.inherirance.exer2;

public class Cylinder extends Circle{
    private double length;

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public Cylinder(double radius, double length) {
        setRadius(radius);
        this.length = length;
    }
    public double findVolume(){
        return this.findArea()*this.length;
    }
}
